<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="down2.*" %>
<%@ page import="org.apache.commons.lang.*" %>
<%@ page import="java.io.*" %>
<% out.clear();
/*
	删除文件记录接口。文件下载完毕后调用
	更新记录：
		2012-05-24 完善
		2012-06-29 增加创建文件逻辑，
*/
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String fid 		= request.getParameter("id");
String uid 		= request.getParameter("uid");
String cbk 		= request.getParameter("callback");//jsonp

if (StringUtils.isBlank(uid)
	||StringUtils.isBlank(fid))
{
	out.write(cbk + "({\"value\":0})");
	return;
}

DBConfig cfg = new DBConfig();
cfg.db().Delete(fid,Integer.parseInt(uid));

out.write(cbk+"({\"value\":1})");%>